package vn.sunnet.backviet01.game.coloa.util.mypool;

import org.anddev.andengine.opengl.texture.region.TiledTextureRegion;

import vn.sunnet.backviet01.game.coloa.human.enemy.Range;

public class EnemyPool extends MyGenericPoolSprite<Range>{
	final TiledTextureRegion mTextureRegion;
	final int tiledAttack;

	public EnemyPool(final int attack, TiledTextureRegion pTexture) {
		super();
		this.mTextureRegion = pTexture;
		tiledAttack = attack;
		
	}

	@Override
	public Range newObject() {
		return new Range(tiledAttack, 0, 0, mTextureRegion.deepCopy());
	}

	@Override
	public void onRecycleObject(Range object) {
		
	}

	@Override
	public void onClearPool() {
		// TODO Auto-generated method stub
		
	}
	
}
